From: Giovanni Campagna Date: Thu, 3 Nov 2011 09:02:03 +0000 (+0100) Subject: NetworkMenu: fix regression in access-point-removed X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7328 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=43f53a708f0e11433a58c5d9504afd12835daed2;p=gnome-shell.git NetworkMenu: fix regression in access-point-removed When changing _findNetwork with _findExistingNetwork, I changed the return value to avoid searching twice for the access point, and changed some names. I forgot to update all points where those names were used. https://bugzilla.gnome.org/show_bug.cgi?id=663278 --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index aa9e2342a..b12730d0e 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1326,7 +1326,7 @@ NMDeviceWireless.prototype = { this._overflowItem = null; } } - this._networks.splice(pos, 1); + this._networks.splice(res.network, 1); } else if (apObj.item) apObj.item.updateAccessPoints(apObj.accessPoints);